<div class="tags">
  <div>
    <form (submit)="addTag($event)">
      <input placeholder="enter a tag or multi tag." [(ngModel)]="newTag" (keyup.enter)="newTag=''" class="form-control" name="newTag">
    </form>
  </div>

  <ul>
    <li *ngFor="let tag of tags; let i = index">
      <span [ngClass]="{'checked': tag.completed}">{{tag.newTag}}</span>
      <span (click)="deleteTag(i)" class="delete-icon pull-right"><strong>X</strong></span>
    </li>
  </ul>
</div>
